import ProxyInterface from '../proxy-interface';
import { ItemGroup } from '../model/projects';

class GroupModelProxy implements ProxyInterface<ItemGroup> {
  public itemGroup = new ItemGroup()
  constructor (responseData) {
    let data = responseData.data || responseData
    Object.assign<ItemGroup, ItemGroup>(this.itemGroup, data)
  }

  getModel (): ItemGroup {
    return this.itemGroup
  }
}

export {
  GroupModelProxy
}
